package com.example.mvvm.ui.my

import android.util.Log
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.mvvm.R
import com.example.mvvm.data.model.place.Province
import com.example.mvvm.databinding.ItemproBinding1


class MyAdapter : BaseQuickAdapter<Province, BaseDataBindingHolder<ItemproBinding1>>(R.layout.itempro1) {

    override fun convert(holder: BaseDataBindingHolder<ItemproBinding1>, item: Province) {
        Log.e("wodepp", "走过了11")
        holder.dataBinding?.let {
            holder.dataBinding?.tvName?.text = item.provinceName
            holder.dataBinding?.executePendingBindings()
        }
    }

}